import request from "@/api/index"

export default {
    //添加
    add(params) {
        return request.post("/batch/batch/add", {
            ...params
        })
    },
    //编辑
    edit(params) {
        return request.post("/batch/batch/edit", {
            ...params
        })
    },
    //批量删除
    delListById(idList) {
        return request.get("/batch/batch/delListById", { idList })
    },
    //条件查询
    queryByCondition(params) {
        return request.post("/batch/batch/queryByCondition", {
            ...params
        })
    },
    //分页查询
    queryPageByCondition(params) {
        return request.post("/batch/batch/queryPageByCondition", {
            ...params
        })
    },
    //解绑
    unbindFishPond(batchId) {
        return request.get("/batch/batch/unbindFishPond", { batchId })
    },
    //绑定
    bindFishPond(params) {
        return request.get("/batch/batch/bindFishPond", { ...params })
    },
    //批次完成
    completeBatch(params) {
        return request.get("/batch/batch/completeBatch", { ...params })
    },
    //主键查询
    queryById(id) {
        return request.get("/batch/batch/queryById", { id })
    },
    
}
